/**
 * 通用混合
 * */

export default {
  methods: {
    // 当 $route 更新时触发
    appRouteChange(to, from) {
      // 企业信息详情
      let compantInfo = ['enterpriseInforDetail','changeRecord']
      if (compantInfo.includes(to.name)) {
        this.$store.commit(
          "admin/menu/setActivePath",
          "/enterpriseInforInquiry"
        );
        this.$store.commit("admin/menu/setOpenNames", [
          "/enterpriseInforManage",
        ]);
      }
    },
  },
};
